package com.zznzzn.myweb.mapper;

import com.zznzzn.myweb.pojo.Order;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface OrderMapper {
    public int addOrder(Order order);
    public int updateOrder(Order order);
    public int deleteOrder(@Param("orderid") String orderid);

    public int updateStatus(@Param("orderid") String orderid,@Param("status") int status);
    public int setTrack(@Param("orderid") String orderid,@Param("trackid") String trackid);

    public List<Order> queryOrdersByFrom(@Param("fromid") String fromid);
    public List<Order> queryOrdersByTo(@Param("toid") String toid);
    public Order queryOrderById(@Param("orderid") String orderid);

    public int getSellCount(@Param("uuid") String uuid);
    public int getBuyCount(@Param("uuid") String uuid);

}
